package org.njbdqn.commons.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class TuiKuanController
 */
public class TuiKuanController extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request, response);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String orderid = request.getParameter("orderid");
		String shopmoney = request.getParameter("shopmoney");
		String tuikuanyuanyin = request.getParameter("tuikuanyuanyin");
		String url1 = request.getParameter("url1");
		request.getSession().setAttribute("returnur2", url1);
	
		request.setAttribute("orderid", orderid);
		request.setAttribute("shopmoney", shopmoney);
		request.setAttribute("tuikuanyuanyin", tuikuanyuanyin);
		
		request.getRequestDispatcher("alipay.trade.refund.jsp").forward(request, response);;
	}

}
